//
//  BaseClassTestViewController.m
//  HappyBug
//
//  Created by liulei on 2018/12/26.
//  Copyright © 2018年 www.hc.com.cn. All rights reserved.
//

#import "BaseClassTestViewController.h"
#import "PersonModel.h"
#import "MJExtension.h"

@interface BaseClassTestViewController ()

@end

@implementation BaseClassTestViewController

- (void)viewDidLoad {
    [self.view setBackgroundColor:[UIColor whiteColor]];
    [super viewDidLoad];
    PersonModel *molde=[[PersonModel alloc]init];
    
//    NSDictionary *dictemp = @{
//                              @"id":@"0",
//                              @"Name":@"thisisname",
//                              @"Hei" :@"thisishei",
//                              @"Address":@"",
//                              @"girlFriendlist":@[@"a",@"b",@"c"],
//                              @"gfdetail":@{@"phone":@(110)},
//                              @"perArr":@[@{@"key":@"value1",
//                                            @"Name":@"thisisname",
//                                            @"Hei" :@"thisishei"},
//                                            @{@"key":@"value2",@"Name":@"thisisname",@"Hei" :@"thisishei"}]
//                              };
    NSArray *arr = @[@{@"key1":@"value1",@"key2":@"value2",@"key3":@"value3"}];
    NSArray *dataarr = [PersonModel mj_objectArrayWithKeyValuesArray:arr];
    PersonModel *model = dataarr[0];
//    PersonData *mainmodel = [PersonData mj_objectWithKeyValues:dictemp];
//
//    PersonModel *model = mainmodel.perArr[0];
//    NSLog(@"%@",model.key);
//
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}


@end
